import Vue from 'vue'
import VueRouter from 'vue-router'
import User from '../views/User'
import News from "../views/News";

Vue.use(VueRouter)

const routes = [
  {path:"/",redirect:"/news"},
  {path:"/user",component:User},
  {path:"/news",component:News}

]

const router = new VueRouter({
  routes
})

export default router
